#ifndef MYANIMATION_H
#define MYANIMATION_H

#include <QRect>
#include "ball.h"

class MyAnimation : public QAbstractAnimation
{
    Q_OBJECT
    friend class Widget;
public:
    MyAnimation(QObject *parent = nullptr);
private:
    QRect ground;
    QRect column1;
    QRect column2;
    Ball ball;


    virtual int duration() const override;
    virtual void updateCurrentTime(int currentTime) override;

signals:
    void valueChanged();
};



#endif // MYANIMATION_H
